Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lock: add support for locking stdenv + flakerefs #2465

Merged
merged 3 commits into from
Jan 6, 2025
Merged

Conversation

gcurtis
Copy link
Collaborator

@gcurtis gcurtis commented Dec 20, 2024

Depends on #2464.


Make the stdenv (and other flakerefs) lockable and updateable. This makes it possible to update the stdenv with a regular devbox update and simplifies the logic for how the stdenv commit is chosen:

  1. If there's no stdenv flakeref in devbox.lock, resolve github:NixOS/nixpkgs/nixpkgs-unstable to a locked ref and store it in the lockfile.
  2. Otherwise, use the ref in the lockfile.

Base automatically changed from gcurtis/flakeref-narhash to main December 20, 2024 21:33
Make the `stdenv` (and other flakerefs) lockable and updateable. This
makes it possible to update the stdenv with a regular `devbox update`
and simplifies the logic for how the stdenv commit is chosen:

1. If there's no stdenv flakeref in devbox.lock, resolve
   github:NixOS/nixpkgs/nixpkgs-unstable to a locked ref and store it in
   the lockfile.
2. Otherwise, use the ref in the lockfile.
@gcurtis gcurtis force-pushed the gcurtis/lock-stdenv branch from e820b88 to 37626bf Compare December 20, 2024 22:04
@gcurtis gcurtis force-pushed the gcurtis/lock-stdenv branch from 4dbebb6 to 1670810 Compare January 2, 2025 22:59
@gcurtis gcurtis merged commit 344dc6c into main Jan 6, 2025
29 checks passed
@gcurtis gcurtis deleted the gcurtis/lock-stdenv branch January 6, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants